<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改可转债比价表')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-CovComparison-edit" th:object="${bondCovComparison}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">股票：</label>
                <div class="col-sm-8">
                    <input name="symbol" th:field="*{symbol}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">操作时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="opertime" th:value="${#dates.format(bondCovComparison.opertime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">序号：</label>
                <div class="col-sm-8">
                    <input name="field0" th:field="*{field0}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">转债代码：</label>
                <div class="col-sm-8">
                    <input name="field1" th:field="*{field1}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">转债名称：</label>
                <div class="col-sm-8">
                    <input name="field2" th:field="*{field2}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">转债最新价：</label>
                <div class="col-sm-8">
                    <input name="field3" th:field="*{field3}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">转债涨跌幅：</label>
                <div class="col-sm-8">
                    <input name="field4" th:field="*{field4}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">正股代码：</label>
                <div class="col-sm-8">
                    <input name="field5" th:field="*{field5}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">正股名称：</label>
                <div class="col-sm-8">
                    <input name="field6" th:field="*{field6}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">正股最新价：</label>
                <div class="col-sm-8">
                    <input name="field7" th:field="*{field7}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">正股涨跌幅：</label>
                <div class="col-sm-8">
                    <input name="field8" th:field="*{field8}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">转股价：</label>
                <div class="col-sm-8">
                    <input name="field9" th:field="*{field9}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">转股价值：</label>
                <div class="col-sm-8">
                    <input name="field10" th:field="*{field10}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">转股溢价率：</label>
                <div class="col-sm-8">
                    <input name="field11" th:field="*{field11}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">纯债溢价率：</label>
                <div class="col-sm-8">
                    <input name="field12" th:field="*{field12}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">回售触发价：</label>
                <div class="col-sm-8">
                    <input name="field13" th:field="*{field13}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">强赎触发价：</label>
                <div class="col-sm-8">
                    <input name="field14" th:field="*{field14}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">到期赎回价：</label>
                <div class="col-sm-8">
                    <input name="field15" th:field="*{field15}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">纯债价值：</label>
                <div class="col-sm-8">
                    <input name="field16" th:field="*{field16}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">开始转股日：</label>
                <div class="col-sm-8">
                    <input name="field17" th:field="*{field17}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">上市日期：</label>
                <div class="col-sm-8">
                    <input name="field18" th:field="*{field18}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">申购日期：</label>
                <div class="col-sm-8">
                    <input name="field19" th:field="*{field19}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "bond/CovComparison";
        $("#form-CovComparison-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-CovComparison-edit').serialize());
            }
        }

        $("input[name='opertime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>